﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(BoxCollider2D))]
public class CameraSwitch : MonoBehaviour
{
    public GameObject Camera_Off;
    public GameObject Camera_On;

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.tag == "Player")
        {
            Camera_Off.SetActive(false);
            Camera_On.SetActive(true);
        }
    }
}
